package com.otod.commons.filemanger.bo;

import java.math.BigDecimal;



import com.otod.base.entity.DataEntity;
import com.otod.commons.utils.StringUtils;

/**
 * 文件基本信息
 * @author jqiu
 */
public class FileBasicInfo extends DataEntity{
	/**
	 * 业务ID
	 */
	private String busiId;
	/**
	 * 附件ID
	 */
	private String attachId;
	/**
	 * 客户端名称
	 */
	private String cname;
	/**
	 * 服务端名称
	 */
	private String sname;
	/**
	 * 大小
	 */
	private BigDecimal size;
	/**
	 * 扩展名
	 */
	private String fileExt = "";
	/**
	 * 服务器存放路径
	 */
	private String path;
	
	public String getBusiId() {
		return busiId;
	}
	public void setBusiId(String busiId) {
		this.busiId = busiId;
	}
	
	public String getAttachId() {
		return attachId;
	}
	public void setAttachId(String attachId) {
		this.attachId = attachId;
	}
	public String getCname() {
		return cname;
	}
	public void setCname(String cname) {
		this.cname = cname;
	}
	public String getSname() {
		return sname;
	}
	public void setSname(String sname) {
		this.sname = sname;
	}
	
	public BigDecimal getSize() {
		return size;
	}
	public void setSize(BigDecimal size) {
		this.size = size;
	}
	public String getFileExt() {
		return fileExt;
	}
	public void setFileExt(String fileExt) {
		if(StringUtils.isEmpty(fileExt)){
			fileExt = "";
		}
		this.fileExt = fileExt;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
}
